<template>
  <div
    class="sidebarItem"
    :class="activeInx == index ? 'active' : ''"
    @click="click"
  >
    <i class="el-icon-goods"></i>

    <span>{{ title }}</span>
  </div>
</template>

<script>
export default {
  name: "sidebarItem",
  props: {
    title: String,
    index: Number,
    activeInx: Number,
  },
  methods: {
    click: function () {
      this.$emit("item-click", this.index);
    },
  },
};
</script>

<style lang="scss" scoped>
@import "@/assets/scss/templates/modules/sidebarItem.scss";
</style>
